package main

import "math"

func maximumProduct(nums []int) int {
	max := math.MinInt

	for i := 0; i < len(nums); i++ {
		for j := i; j < len(nums); j++ {
			for k := j; k < len(nums); k++ {
				if i != j && j != k && i != k {
					if nums[i]*nums[j]*nums[k] > max {
						max = nums[i] * nums[j] * nums[k]
					}
				}
			}
		}
	}

	return max
}
